import request from '../utils/request';
import da from 'element-ui/src/locale/lang/da';

// 添加修改记录
export function addUpdateProductRecode(data) {
    return request({
        url: '/ProductRecode/addUpdateProductRecode',
        method: 'post',
        data: data
    });
}
// 获取商品列表
export function getLisProductRecode(data) {
    return request({
        url: '/ProductRecode/getLisProductRecode?pageNum='+ data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data: data
    });
}
// 获取商品详情信息
export function getProductRecodeInfo(data) {
    return request({
        url: '/ProductRecode/getProductRecodeInfo?id='+data,
        method: 'get',
    });
}
// 删除商品
export function delProductRecode(data) {
    return request({
        url: '/ProductRecode/delProductRecode',
        method: 'post',
        data:data
    });
}
// 根据记录删除商品
export function delProductRecodeByTime(data) {
    return request({
        url: '/ProductRecode/delProductRecodeByTime',
        method: 'post',
        data:data
    });
}
// 根据月份查询
export function getProductSalesByTime(data) {
    return request({
        url: '/ProductRecode/getProductSalesByTime?pageNum='+ data.pageIndex + '&pageSize=' + data.pageSize,
        method: 'post',
        data:data
    });
}
